{% extends 'base.html' %}
{% block title %}天天生鲜-首页{% endblock title %}

{% block body %}
	<div class="navbar_con">
		<div class="navbar">
			<h1 class="fl">全部商品分类</h1>
			<ul class="navlist fl">
				<li><a href="{% url 'goods:index' %}">首页</a></li>
				<li class="interval">|</li>
			</ul>
		</div>
	</div>

	<div class="center_con clearfix">
		<ul class="subnav fl">
            {% for goods_type in goods_type_list %}
			<li><a href="{% url 'goods:list' goods_type.id 1 %}" class={{ goods_type.logo }}>{{ goods_type.name }}</a></li>
            {% endfor %}
{#			<li><a href="#model02" class="seafood">海鲜水产</a></li>#}
{#			<li><a href="#model03" class="meet">猪牛羊肉</a></li>#}
{#			<li><a href="#model04" class="egg">禽类蛋品</a></li>#}
{#			<li><a href="#model05" class="vegetables">新鲜蔬菜</a></li>#}
{#			<li><a href="#model06" class="ice">速冻食品</a></li>#}
		</ul>
		<div class="slide fl">
			<ul class="slide_pics">
                {% for goods_banner in goods_index_goods_banner %}
				<li><a href="{% url 'goods:detail' goods_banner.id %}"><img src="{{goods_banner.image.url}}" alt="{{ goods_banner.name }}"></a></li>
                {% endfor %}
{#				<li><img src="../static/images/slide02.jpg" alt="幻灯片"></li>#}
{#				<li><img src="../static/images/slide03.jpg" alt="幻灯片"></li>#}
{#				<li><img src="../static/images/slide04.jpg" alt="幻灯片"></li>#}
			</ul>
			<div class="prev"></div>
			<div class="next"></div>
			<ul class="points"></ul>
		</div>
		<div class="adv fl">
            {% for active_goods in active_goods_list %}
			<a href="{{ active_goods.url }}"><img src="{{active_goods.image.url}}"></a>
            {% endfor %}
{#			<a href="#"><img src="../static/images/adv02.jpg"></a>#}
		</div>
	</div>

    {% for goods_type in goods_type_list %}
	<div class="list_model">
		<div class="list_title clearfix">
			<h3 class="fl" id="model01">{{ goods_type.name }}</h3>
			<div class="subtitle fl">
				<span>|</span>
                {% for banner in goods_type.text_banners %}
				<a href="{% url 'goods:detail' banner.sku.id %}">{{ banner.sku.name }}</a>
                {% endfor %}
			</div>
			<a href="{% url 'goods:list' goods_type.id 1 %}" class="goods_more fr" id="fruit_more">查看更多 ></a>
		</div>

		<div class="goods_con clearfix">
			<div class="goods_banner fl"><img src="{{ goods_type.image.url }}"></div>
			<ul class="goods_list fl">
                {% for banner in goods_type.image_banners %}
				<li>
					<h4><a href="{% url 'goods:detail' banner.sku.id %}">{{ banner.sku.name }}</a></h4>
					<a href="{% url 'goods:detail' banner.sku.id %}"><img src="{{ banner.sku.image.url }}"></a>
					<div class="prize">${{ banner.sku.price }}</div>
				</li>
                {% endfor %}
{#				<li>#}
{#					<h4><a href="#">葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods/goods002.jpg"></a>#}
{#					<div class="prize">¥ 5.50</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">柠檬</a></h4>#}
{#					<a href="#"><img src="../static/images/goods/goods001.jpg"></a>#}
{#					<div class="prize">¥ 3.90</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">奇异果</a></h4>#}
{#					<a href="#"><img src="../static/images/goods/goods012.jpg"></a>#}
{#					<div class="prize">¥ 25.80</div>#}
{#				</li>#}
			</ul>
		</div>
	</div>
    {% endfor %}

{#	<div class="list_model">#}
{#		<div class="list_title clearfix">#}
{#			<h3 class="fl" id="model02">海鲜水产</h3>#}
{#			<div class="subtitle fl">#}
{#				<span>|</span>#}
{#				<a href="#">河虾</a>#}
{#				<a href="#">扇贝</a>				#}
{#			</div>#}
{#			<a href="#" class="goods_more fr">查看更多 ></a>#}
{#		</div>#}
{##}
{#		<div class="goods_con clearfix">#}
{#			<div class="goods_banner fl"><img src="../static/images/banner02.jpg"></div>#}
{#			<ul class="goods_list fl">#}
{#				<li>#}
{#					<h4><a href="#">青岛野生海捕大青虾</a></h4>#}
{#					<a href="#"><img src="../static/images/goods/goods018.jpg"></a>#}
{#					<div class="prize">¥ 48.00</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">扇贝</a></h4>#}
{#					<a href="#"><img src="../static/images/goods/goods019.jpg"></a>#}
{#					<div class="prize">¥ 46.00</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">冷冻秋刀鱼</a></h4>#}
{#					<a href="#"><img src="../static/images/goods/goods020.jpg"></a>#}
{#					<div class="prize">¥ 19.00</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">基围虾</a></h4>#}
{#					<a href="#"><img src="../static/images/goods/goods021.jpg"></a>#}
{#					<div class="prize">¥ 25.00</div>#}
{#				</li>#}
{#			</ul>#}
{#		</div>#}
{#	</div>#}
{##}
{#	<div class="list_model">#}
{#		<div class="list_title clearfix">#}
{#			<h3 class="fl" id="model03">猪牛羊肉</h3>#}
{#			<div class="subtitle fl">#}
{#				<span>|</span>#}
{#				<a href="#">鲜芒</a>#}
{#				<a href="#">加州提子</a>#}
{#				<a href="#">亚马逊牛油果</a>#}
{#			</div>#}
{#			<a href="#" class="goods_more fr">查看更多 ></a>#}
{#		</div>#}
{##}
{#		<div class="goods_con clearfix">#}
{#			<div class="goods_banner fl"><img src="../static/images/banner03.jpg"></div>#}
{#			<ul class="goods_list fl">#}
{#				<li>#}
{#					<h4><a href="#">维多利亚葡萄维多利亚葡萄维多利亚葡萄维多利亚葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods.jpg"></a>#}
{#					<div class="prize">¥ 38.00</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">维多利亚葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods.jpg"></a>#}
{#					<div class="prize">¥ 38.00</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">维多利亚葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods.jpg"></a>#}
{#					<div class="prize">¥ 38.00</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">维多利亚葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods.jpg"></a>#}
{#					<div class="prize">¥ 38.00</div>#}
{#				</li>#}
{#			</ul>#}
{#		</div>#}
{#	</div>#}
{##}
{#	<div class="list_model">#}
{#		<div class="list_title clearfix">#}
{#			<h3 class="fl" id="model04">禽类蛋品</h3>#}
{#			<div class="subtitle fl">#}
{#				<span>|</span>#}
{#				<a href="#">鲜芒</a>#}
{#				<a href="#">加州提子</a>#}
{#				<a href="#">亚马逊牛油果</a>#}
{#			</div>#}
{#			<a href="#" class="goods_more fr">查看更多 ></a>#}
{#		</div>#}
{##}
{#		<div class="goods_con clearfix">#}
{#			<div class="goods_banner fl"><img src="../static/images/banner04.jpg"></div>#}
{#			<ul class="goods_list fl">#}
{#				<li>#}
{#					<h4><a href="#">维多利亚葡萄维多利亚葡萄维多利亚葡萄维多利亚葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods.jpg"></a>#}
{#					<div class="prize">¥ 38.00</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">维多利亚葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods.jpg"></a>#}
{#					<div class="prize">¥ 38.00</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">维多利亚葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods.jpg"></a>#}
{#					<div class="prize">¥ 38.00</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">维多利亚葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods.jpg"></a>#}
{#					<div class="prize">¥ 38.00</div>#}
{#				</li>#}
{#			</ul>#}
{#		</div>#}
{#	</div>#}
{##}
{#	<div class="list_model">#}
{#		<div class="list_title clearfix">#}
{#			<h3 class="fl" id="model05">新鲜蔬菜</h3>#}
{#			<div class="subtitle fl">#}
{#				<span>|</span>#}
{#				<a href="#">鲜芒</a>#}
{#				<a href="#">加州提子</a>#}
{#				<a href="#">亚马逊牛油果</a>#}
{#			</div>#}
{#			<a href="#" class="goods_more fr">查看更多 ></a>#}
{#		</div>#}
{##}
{#		<div class="goods_con clearfix">#}
{#			<div class="goods_banner fl"><img src="../static/images/banner05.jpg"></div>#}
{#			<ul class="goods_list fl">#}
{#				<li>#}
{#					<h4><a href="#">维多利亚葡萄维多利亚葡萄维多利亚葡萄维多利亚葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods.jpg"></a>#}
{#					<div class="prize">¥ 38.00</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">维多利亚葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods.jpg"></a>#}
{#					<div class="prize">¥ 38.00</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">维多利亚葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods.jpg"></a>#}
{#					<div class="prize">¥ 38.00</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">维多利亚葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods.jpg"></a>#}
{#					<div class="prize">¥ 38.00</div>#}
{#				</li>#}
{#			</ul>#}
{#		</div>#}
{#	</div>#}
{##}
{#	<div class="list_model">#}
{#		<div class="list_title clearfix">#}
{#			<h3 class="fl" id="model06">速冻食品</h3>#}
{#			<div class="subtitle fl">#}
{#				<span>|</span>#}
{#				<a href="#">鲜芒</a>#}
{#				<a href="#">加州提子</a>#}
{#				<a href="#">亚马逊牛油果</a>#}
{#			</div>#}
{#			<a href="#" class="goods_more fr">查看更多 ></a>#}
{#		</div>#}
{##}
{#		<div class="goods_con clearfix">#}
{#			<div class="goods_banner fl"><img src="../static/images/banner06.jpg"></div>#}
{#			<ul class="goods_list fl">#}
{#				<li>#}
{#					<h4><a href="#">维多利亚葡萄维多利亚葡萄维多利亚葡萄维多利亚葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods.jpg"></a>#}
{#					<div class="prize">¥ 38.00</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">维多利亚葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods.jpg"></a>#}
{#					<div class="prize">¥ 38.00</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">维多利亚葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods.jpg"></a>#}
{#					<div class="prize">¥ 38.00</div>#}
{#				</li>#}
{#				<li>#}
{#					<h4><a href="#">维多利亚葡萄</a></h4>#}
{#					<a href="#"><img src="../static/images/goods.jpg"></a>#}
{#					<div class="prize">¥ 38.00</div>#}
{#				</li>#}
{#			</ul>#}
{#		</div>#}
{#	</div>#}
{% endblock body %}